package com.sys.group.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sys.group.entity.Tree;
import com.sys.group.mapper.TreeMapper;
import com.sys.group.service.ITreeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author gyf
 * @since 2023-05-17
 */
@Service
public class TreeServiceImpl extends ServiceImpl<TreeMapper, Tree> implements ITreeService {
    @Autowired
    private RedisTemplate redisTemplate;

    @Override
    public void addtree(Tree tree) {
       this.baseMapper.addtree(tree);
    }

    public List<Tree> getTreesByUId(Integer uid){
        return this.baseMapper.getTreesByUId(uid);
    };
}
